package com.example.controller;


import com.example.service.CostService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Test {

    @Reference
    CostService costService;

    @RequestMapping("/test")
    public String test(){
        System.out.println(costService.sayHi());
        return costService.sayHi();
    }
}
